﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Flame.Reflection
{
    public enum IntellisenseItemType { Namespace/*"?4"*/, Type/*"?3"*/, Object, Method/*"?0"*/, Property/*"?2"*/, Field/*"?2"*/, Event/*"?1"*/, None }

 public   class IntellisenseItem
    {
        public string Name { get; set; }
        public IntellisenseItemType Type { get; set; }
        public override bool Equals(object obj)
        {
            var ii = obj as IntellisenseItem;
            return ii != null && ii.Name == Name && ii.Type == Type;
        }
        public override int GetHashCode()
        {
            return Name.GetHashCode();
        }
    }
}
